home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
S3D_2E1.exe
/
Shout3d_runtime
/
codebase
/
models
/
extrusionTest.wrl
< prev
next >
Wrap
Text File
|
2000-06-17
|
4KB
|
184 lines
#VRML V2.0 utf8
Transform {
children Shape {
appearance Appearance {
texture ImageTexture { url "images/shared/wooden_stage_bg.jpg" }
material Material {}
}
geometry Extrusion {}
}
}
Transform {
children Shape {
appearance Appearance {
texture ImageTexture { url "images/shared/wooden_stage_bg.jpg" }
material Material {}
}
geometry Extrusion {
spine [ 0 -3 0, -3 -1 0, -3 1 -3, -3 3 -3 ]
crossSection [ -1 1, 1 1, 2 0, 1 -1, -1 -1, -2 0, -1 1 ]
scale [ 1 1 , .75 .75, .5 .5, .1 .1 ]
}
}
}
Transform {
translation 4 0 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0 ]
}
}
}
Transform {
translation 4 -8 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0, 0 0 0 ]
}
}
}
Transform {
translation 12 0 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 4 0, 0 4 -4, 0 0 -4 ]
}
}
}
Transform {
translation 12 -8 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 4 0, 0 4 4, 0 0 4, 0 0 0 ]
}
}
}
Transform {
translation 16 0 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
}
}
}
Transform {
translation 16 -8 0
children Shape {
appearance Appearance {
material Material {}
}
geometry Extrusion {
spine [ 0 0 0, 0 0 4, 4 0 4, 4 0 0, 0 0 0 ]
}
}
}
Transform {
translation 4 0 -12
children Shape {
appearance Appearance {
material Material {}
}
geometry DEF ANIM_SPINE_EXTRUSION Extrusion {
spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0 ]
}
}
}
Transform {
translation 12 0 -12
children Shape {
appearance Appearance {
material Material {}
}
geometry DEF ANIM_SCALE_EXTRUSION Extrusion {
spine [ 0 0 0, 0 4 0, 0 4 -4, 0 0 -4 ]
}
}
}
Transform {
translation 16 0 -12
children Shape {
appearance Appearance {
material Material {}
}
geometry DEF CROSS_SECTION_ANIM_EXTRUSION Extrusion {
spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
}
}
}
Transform {
translation 16 -12 -12
children Shape {
appearance Appearance {
material Material {}
}
geometry DEF TWIST_ANIM_EXTRUSION Extrusion {
spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
}
}
}
DEF TIMER TimeSensor {
loop TRUE
cycleInterval 8
}
DEF SPINE_INTERP CoordinateInterpolator {
key [ 0 .33 .66 1]
keyValue [ 0 0 0, 0 4 0, 4 4 0, 4 0 0,
-1 0 0, 0 6 0, 4 4 -1, 4 3 0,
2 0 0, 0 3 0, 4 4 1, 4 -1 0,
0 0 0, 0 4 0, 4 4 0, 4 0 0,
]
}
DEF SCALE_INTERP CoordinateInterpolator {
key [ 0 .33 .66 1]
keyValue [ 1 1, 1 1, 1 1, 1 1,
.5 .5, 2 1, 3 3, .2 .2,
.2 .2, 1 2, 3 5, .5 .5,
1 1, 1 1, 1 1, 1 1,
]
}
DEF CROSS_INTERP CoordinateInterpolator {
key [ 0 .33 .66 1]
keyValue [ -1 1, 1 1, 1 -1, -1 -1, -1 1,
-2 1, .1 1, 1 -.1, -1 -1, -2 1,
-2 2, .1 1, 1 -.1, -1 -1, -2 2,
-1 1, 1 1, 1 -1, -1 -1, -1 1,
]
}
DEF TWIST_INTERP CoordinateInterpolator {
key [ 0 .33 .66 1]
keyValue [ 0 0 1 0, 0 0 1 0, 0 0 1 0, 0 0 1 0,
0 0 1 1.5, 0 0 1 0, 0 0 1 0, 0 0 1 0,
0 0 1 1.5, 0 0 1 1.5, 0 0 1 -1.5, 0 0 1 0,
0 0 1 0, 0 0 1 0, 0 0 1 0, 0 0 1 0
]
}
Route TIMER.fraction to SPINE_INTERP.fraction
Route SPINE_INTERP.value to ANIM_SPINE_EXTRUSION.spine
Route TIMER.fraction to SCALE_INTERP.fraction
Route SCALE_INTERP.value to ANIM_SCALE_EXTRUSION.scale
Route TIMER.fraction to CROSS_INTERP.fraction
Route CROSS_INTERP.value to CROSS_SECTION_ANIM_EXTRUSION.crossSection
Route TIMER.fraction to TWIST_INTERP.fraction
Route TWIST_INTERP.value to TWIST_ANIM_EXTRUSION.orientation